import request from '@/utils/request' // 引入request.js

// 登录的接口
export const loginAPI = (data) => {
  return request({
    url: '/imitate/auth/login.json',
    method: 'POST',
    data
  })
}

// 注册
export const registerAPI = (data) => {
  return request({
    url: '/imitate/auth/register.json',
    method: 'POST',
    data
  })
}
